package classifier;

import java.util.Vector;

abstract public class GeneralClassifier<D> 
{
	abstract public void train(Vector<LabeledData<D>> training_data);
	abstract public int classify(D data, double level);
	
	public Vector<Integer> classify(Vector<D> data, double level)
	{
		Vector<Integer> result = new Vector<Integer>();
		for (D d : data) 
		{
			result.add(classify(d, level));
		}
		return result;
	}

}
